package demo;


public class Test {
    public static void main(String[] args) {
        Student student1 = new Student("hhh",10);
        Student student2 = new Student("fff",20);

        if(student1.compareTo(student2) > 0){
            System.out.println("student1 > student2");
        }else if(student1.compareTo(student2) < 0){
            System.out.println("student1 < student2");
        }else{
            System.out.println("student1 = student2");
        }
    }

}
